PlatformApi

interface PlatformApi

API for abstraction of simple ModLoader requests

Author

fzzyhmstrs

Since

0.5.0

Functions

Link copied to clipboard
abstract fun configDir(): File

The config directory

Link copied to clipboard
abstract fun gameDir(): File

The root game directory

Link copied to clipboard
abstract fun isClient(): Boolean

Whether the game includes a logical client or not. This will be true both for singleplayer games and the client side of a multiplayer game.

Link copied to clipboard
abstract fun isModLoaded(mod: String): Boolean

Returns whether another mod is loaded based on their registered mod_id.